<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <div class="panel-title">加班详情</div>
    </div>
    <div class="panel-body">
        <div class="row">
            <div class="col-md-12">
                <h4>基本信息</h4>
                <table class="table table-striped">
                    <tr>
                        <th width="150">员工姓名:</th>
                        <td>{$row.user_name|default=''}</td>
                        <th width="150">手机号:</th>
                        <td>{$row.mobile|default=''}</td>
                    </tr>
                    <tr>
                        <th>加班日期:</th>
                        <td>{$row.overtime_date}</td>
                        <th>加班类型:</th>
                        <td>{$row.overtime_type_text}</td>
                    </tr>
                    <tr>
                        <th>开始时间:</th>
                        <td>{$row.start_time_text}</td>
                        <th>结束时间:</th>
                        <td>{$row.end_time_text}</td>
                    </tr>
                    <tr>
                        <th>加班时长:</th>
                        <td>{$row.overtime_hours} 小时</td>
                        <th>审批状态:</th>
                        <td>{$row.status_text}</td>
                    </tr>
                    <tr>
                        <th>加班原因:</th>
                        <td colspan="3">{$row.reason|default=''}</td>
                    </tr>
                </table>
            </div>
        </div>
        
        {if condition="$row.approver_name"}
        <div class="row" style="margin-top: 20px;">
            <div class="col-md-12">
                <h4>审批信息</h4>
                <table class="table table-striped">
                    <tr>
                        <th width="150">审批人:</th>
                        <td>{$row.approver_name}</td>
                        <th width="150">审批时间:</th>
                        <td>{$row.approval_time ? date('Y-m-d H:i:s', $row.approval_time) : ''}</td>
                    </tr>
                    <tr>
                        <th>审批备注:</th>
                        <td colspan="3">{$row.approval_remark|default=''}</td>
                    </tr>
                </table>
            </div>
        </div>
        {/if}
        
        <div class="form-group layer-footer">
            <div class="col-xs-12 text-center">
                <button type="button" class="btn btn-primary btn-embossed btn-close">关闭</button>
            </div>
        </div>
    </div>
</div>
